void postConfig(AliAnalysisTaskIDFFTCF *task){

  //

  task->SetFFHistoBins(19,5,100,50,-1,2,60,0,6,30,0,1.2); // log pt bins                  
}

// ----------------------------------------------------------------------------------

AliAnalysisTaskIDFFTCF *AddTask_obusch_FragFuncPWG4_11a1_new(){

  AliAnalysisTaskIDFFTCF *ff=0;
  
  //gROOT->LoadMacro("./AddTaskIDFFTCF.C");
  gROOT->LoadMacro("$ALICE_ROOT/PWGJE/macros/AddTaskIDFFTCF.C");

  Int_t eventClass=0;        

  //dummping for test
  AliAnalysisTaskIDFFTCF::fkDump = kFALSE; //kTRUE;


  //const Int_t tofm[]={1,2,3,4};
  const Int_t tofm[]={3};
  for(Int_t TPCCutMode = 1; TPCCutMode<=1; TPCCutMode++){
    for(Int_t it=0; it<sizeof(tofm)/sizeof(Int_t); it++){
      const Int_t TOFCutMode = tofm[it];

      //TOF: 3 out of 1,2,3,4
      //TPC: 1 out of 0,1,2

      //if(TOFCutMode!=3 && TPCCutMode!=1)
      //continue;

      // rec jets, rec tracks, all jets and with upper pt / min ntrack cut
      
      //old AOD
      ff = AddTaskIDFFTCF("jetsAOD_FASTJET","", "jetsAODMC2_FASTJET", "AODMCb", "AODMC2b", 768,0.4,0,150.,TPCCutMode, TOFCutMode, eventClass);
      postConfig(ff);
      
      //new AOD
      //ff = AddTaskIDFFTCF("clustersAOD_ANTIKT","", "clustersAODMC2_ANTIKT", "AODb", "AODMC2b", 272, 0.4,0,150.,TPCCutMode, eventClass,"_Skip00","","_Skip00");
    }
  }

  return ff;
}
